@if(!empty($list))

    <table class="table table-hover tm-table-small tm-product-table user-log-table">
        <tr>
            <td>操作</td>
            <td>产品名称</td>
            <td>订单号</td>
            <td>总计</td>

            <td>日期</td>


        </tr>
        @forelse($list as $k=>$v)
            <tr>
                <td>
                    @if($v['status']==3)
                        <a href="javascript:void(0)"
                           class="btn btn-info btn-sm">等待审核</a>
                    @elseif($v['status']==4)
                        <a href="javascript:void(0)"
                           class="btn btn-info btn-sm">等待续费审核</a>
                    @elseif($v['status']==1)
                        <a href="javascript:void(0)"
                           class="btn btn-info btn-sm"
                           style="background: #6aaf08;border-color: #6aaf08;color: #fff">已开通</a>
                        <a href="{{ plugin_route('hostserver.user.buy.good.renewal',['id'=>$v->id]) }}"
                           class="btn btn-info btn-sm">续费</a>

                    @endif
                    <a href="{{ plugin_route('hostserver.user.buy.good.show',['id'=>$v->id]) }}"
                       class="btn btn-warning btn-sm">查看</a>

                </td>
                <td>{{ $v['name'] }}</td>
                <td>{{  $v['order_sn'] }}</td>
                <td><span class="text-danger">{{  $v['total'] }}</span></td>


                <td>
                    <p>生效：{{  $v['buy_at'] }}</p>
                    <p>到期：<span class="text-danger">{{ $v['end_at'] }}</span></p>
                </td>


            </tr>

            @if(in_array($v['status'],[1,4]))
                <tr>
                    <td colspan="3">
                        <p>IP:{{ $v->ip }}</p>
                        <p>账号：{{ $v->root_name }}</p>
                        <p>密码：{{ $v->root_password }}</p></td>
                    </td>
                    <td colspan="3">
                        <P>地址：{{ $v->bt_url }}</P>
                        <p>账号：{{ $v->bt_name }}</p>
                        <p>密码：{{ $v->bt_password }}</p>
                    </td>
                </tr>
            @endif


        @empty
            <tr>
                <td colspan="6">
                    @include('plugin.hostserver.front.layout.no_item')
                </td>
            </tr>
        @endforelse
    </table>


@endif